const fs = require('fs')
try {
    fs.writeFileSync('./sfsfs/sfs.txt', '666')
    console.log("写入成功");
} catch (error) {
    console.log("写入失败",error);
}